package com.social.service;

import com.social.dao.CommentReplyMapper;
import com.social.dao.model.CommentReply;
import com.social.dao.model.CommentReplyExample;
import com.social.daoEx.CommentReplyMapperEx;
import com.social.daoEx.model.CommentReplyEx;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CommentReplyService {
    @Autowired
    private CommentReplyMapper commentReplyMapper;
    @Autowired
    private CommentReplyMapperEx commentReplyMapperEx;

    private static final Logger logger = Logger.getLogger(CommentReplyService.class);

    public int countByExample(CommentReplyExample example) {
        return this.commentReplyMapper.countByExample(example);
    }

    public CommentReply selectByPrimaryKey(String id) {
        return this.commentReplyMapper.selectByPrimaryKey(id);
    }

    public List<CommentReply> selectByExample(CommentReplyExample example) {
        return this.commentReplyMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.commentReplyMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(CommentReply record) {
        return this.commentReplyMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(CommentReply record) {
        return this.commentReplyMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(CommentReplyExample example) {
        return this.commentReplyMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(CommentReply record, CommentReplyExample example) {
        return this.commentReplyMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(CommentReply record, CommentReplyExample example) {
        return this.commentReplyMapper.updateByExample(record, example);
    }

    public int insert(CommentReply record) {
        return this.commentReplyMapper.insert(record);
    }

    public int insertSelective(CommentReply record) {
        return this.commentReplyMapper.insertSelective(record);
    }

	public List<CommentReplyEx> selectList(String id) {
		return commentReplyMapperEx.selectList(id);
	}
}